home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 95 / MOBICLIC 95.ISO / mac / MWB_DATA / TCH095 / TCH095_00 / TCH095_00.swf / scripts / frame_6 / PlaceObject2_187_194 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2007-06-28  |  1KB  |  34 lines

  1. onClipEvent(enterFrame){
  2.    if(pSonDebutCharge === 0)
  3.    {
  4.       if(mySonCharge <= _root.gListeSons.length - 1)
  5.       {
  6.          var mon_sound = new Sound();
  7.          if(mySonCharge === 0)
  8.          {
  9.             mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
  10.             _root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
  11.          }
  12.          else
  13.          {
  14.             mon_sound.loadSound(myCheminSon + _root.gListeSons[mySonCharge] + ".mp3",false);
  15.          }
  16.          pSonDebutCharge = 1;
  17.          _root.infos["testCharge" + myLangue].text = String(mySonCharge) + "/" + String(_root.gListeSons.length - 1);
  18.       }
  19.    }
  20.    else
  21.    {
  22.       if(mon_sound.getBytesTotal() != 0)
  23.       {
  24.          _root.infos["testpCent" + myLangue].text = 100 * (mon_sound.getBytesLoaded() / mon_sound.getBytesTotal());
  25.       }
  26.       if(mon_sound.getBytesLoaded() == mon_sound.getBytesTotal())
  27.       {
  28.          _root[myLangue + "_" + "my_comment_" + mySonCharge] = mon_sound;
  29.          mySonCharge += 1;
  30.          pSonDebutCharge = 0;
  31.       }
  32.    }
  33. }
  34.